//
//  ViewControllera.swift
//  eCLINICAL
//
//  Created by tom on 15/11/11.
//  Copyright © 2015年 tusm. All rights reserved.
//

import UIKit
import SwiftyJSON

class ViewControllera: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        let jsonData="{\"table\":[{\"loginStatus\":\"1\",\"loginTip\":\"登陆成功\"},{\"loginStatus\":\"2\",\"loginTip\":\"登1陆成功\"}]}".dataUsingEncoding(NSUTF8StringEncoding)
        let json=JSON(data:jsonData!)
        print(json["table"][0]["loginStatus"])
        //{"table":[{"loginStatus":"1","loginTip":"登陆成功","UserName":"t1","UserGroup":"医生","StopFlag":false,"Remark":""}]}

        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    @IBAction func btnclick(sender: AnyObject) {
        SweetAlert().showAlert("i live china")
    }

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
